//
//  JJWeatherService.swift
//  swiftStudy
//
//  Created by hamilyjing on 2020/6/26.
//  Copyright © 2020 JJ. All rights reserved.
//

import Foundation

class JJWeatherService: JJService {
    func requestWeather(networkSuccessResponse: ((Any?, [String: Any]) -> Void)?, networkFailResponse: ((Any?, [String: Any]) -> Void)?) -> Void {
        
        let request = JJWeatherRequest(identity: "JJWeatherService-getWeather", parameters: [String: Any](), isSaveToMemory: false, isSaveToDisk: false)
        request.networkSuccessResponse = networkSuccessResponse
        request.networkFailResponse = networkFailResponse
        featureset?.startRequest(request: request)
    }
}
